package cn.phecda.boot.data.autoconfigure;

import cn.phecda.boot.data.jpa.configuration.DataJpaConfiguration;
import cn.phecda.boot.data.mybatis.configuration.DataMybatisPlusConfiguration;
import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p> 自动配置 </p>
 *
 * @author : wanpinwei
 */
@Slf4j
@AutoConfiguration
@Import({
        DataJpaConfiguration.class,
        DataMybatisPlusConfiguration.class
})
@EnableTransactionManagement
public class DataAutoConfiguration {

    @PostConstruct
    public void postConstruct() {
        log.info("|Phecda Boot Data|- Auto Configuration");
    }

}
